package terminal_enum

// 终端-锁车操作
type terminalLockCar int

var TerminalLockCar terminalLockCar

// 解除锁定
func (c *terminalLockCar) LockRemove() int {
	return 0
}

// 锁定车辆
func (c *terminalLockCar) LockCar() int {
	return 1
}

func (c *terminalLockCar) ToText(value int) string {
	switch value {

	case 0:
		return "解除锁定"

	case 1:
		return "锁定车辆"

	}
	return ""
}

func (c *terminalLockCar) ToValue(text string) int {
	switch text {

	case "解除锁定":
		return 0

	case "锁定车辆":
		return 1

	}
	return 0
}
